package com.spring.sunflower.common;

import com.spring.sunflower.base.BaseObserver;
import com.spring.sunflower.base.BasePresenter;
import com.spring.sunflower.bean.BlackHasBean;
import com.spring.sunflower.bean.BlackListBean;
import com.spring.sunflower.bean.CommonBean;

import io.reactivex.rxjava3.core.Observable;

/**
 * Created by Kevin on 2021/6/28<br/>
 * <p>
 * Describe:<br/>
 */
public class AccountOffPresenter extends BasePresenter<CommonContract.AccountOffView> {
    public AccountOffPresenter(CommonContract.AccountOffView baseView) {
        super(baseView);
    }

    public void accountOff() {
        Observable<CommonBean> observable = requestDataSource.accountOff();
        addDisposable(observable, new BaseObserver<CommonBean>(baseView) {

            @Override
            public void onSuccess(CommonBean bean) {
                baseView.accountOffSuccess();
            }

            @Override
            public void onError(int status, String msg) {

            }
        });
    }
}
